<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        body {
            perspective: 8000px;
        }
        
        .box {
            position: relative;
            width: 100px;
            height: 100px;
            margin: 100px auto;
            transition: all .5s;
            transform-style: preserve-3d;
        }
        
        .front,
        .back {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            border-radius: 50%;
            background-color: pink;
            text-align: center;
            line-height: 100px;
            color: #fff;
        }
        
        .front {
            z-index: 1;
        }
        
        .back {
            background-color: blue;
            transform: rotateY(180deg);
        }
        
        .box:hover {
            transform: rotateY(180deg);
        }
        
        .nav {
            margin: 300px;
        }
        
        .nav ul li {
            position: relative;
            width: 100px;
            height: 50px;
            list-style: none;
            text-align: center;
            line-height: 50px;
            color: #fff;
            transform-style: preserve-3d;
            transition: all 5s;
        }
        
        .up,
        .down {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            background-color: pink;
        }
        
        .up {
            transform: translateZ(25px);
        }
        
        .down {
            background-color: blue;
            transform: translateY(25px) rotateX(-90deg);
        }
        
        .nav ul li:hover {
            transform: rotateX(90deg);
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="front">吴剑飞</div>
        <div class="back">黄美君</div>
    </div>
    <div class="nav">
        <ul>
            <li>
                <div class="up">吴剑飞</div>
                <div class="down">黄美君</div>
            </li>
        </ul>
    </div>
</body>

</html>